import { get, post,puts ,postimg} from './http';

export const Login = p => post('?q=app/user/login', p);

export const getList = p => get('?q=app/production_load_material', p);

export const import_file = p => post('?q=app/production_load_material/production_load_material_update', p);

export const execute_data = p => post('?q=app/production_load_material/production_load_material_prepare_execute', p);

export const execute_on = p => post('?q=app/production_load_material/production_load_material_execute_on', p);

export const execute_accomplish = p => post('?q=app/production_load_material/production_load_material_execute_accomplish', p);

export const affirm_accomplish = p => post('?q=app/production_load_material/production_load_material_affirm_accomplish', p);

export const edit_elevator = p => post('?q=app/production_load_material/production_load_material_edit_elevator', p);

export const edit_urgent = p => post('?q=app/production_load_material/production_load_material_edit_urgent', p);

export const delete_data = p => post('?q=app/production_load_material/production_load_material_delete', p);

export const getToken = p => post('?q=app/user/token', p);

export const getMaterialCategory = p => get('?q=app/material_quality/configuration/material_category');

//获取验证码
export const captchaSms = p => post('api/v2/captcha/sms',p);

//上传图片
export const uploadimage = p => postimg('api/v2/upload/image',p);

//获取临时身份
export const uploadassumeRole = p => get('api/v2/upload/assumeRole',p);

//登录
export const loginpassword = p => post('api/v2/login/password',p);0

//注册
export const registersms = p => post('api/v2/register/sms',p);

//修改密码
export const detailpassword = p => post('api/v2/member/detail/password',p);

//用户信息
export const memberdetail = p => get('api/v2/member/detail',p);

//轮播图
export const bannerlist = p => get('api/v2/banner/list');

//系列图库展示列表
export const seriesgallerylist = p => get('api/v2/series_gallery/list');


//系列图库列表
export const seriesgallerys = p => get('api/v2/series_gallery',p);

//系列图库详情
export const seriesgallery = p => get('api/v2/series_gallery/'+p.id);

//首页展示列
export const designerdemandlist = p => get('api/v2/designer_demand/list',p);

//设计之星列表
export const designerstarlist = p => get('api/v2/designer_star/list');

//经典案例列表
export const classiccaselist = p => get('api/v2/classic_case',p);

//经典案例列表
export const classiccase = p => get('api/v2/classic_case/'+p.id);

//材料列表
export const materialgallerymaterials = p => get('api/v2/material_gallery/materials');

//材料图列表
export const materialgallery = p => get('api/v2/material_gallery',p);

//CAD图库列表
export const cadgallerys = p => get('api/v2/cad_gallery',p);

//CAD图库详情
export const cadgallery = p => get('api/v2/cad_gallery/'+p.id);

//获取assumeRole身份
export const assumeRole = p => get('api/v2/upload/assumeRole');

//投标
export const designerdemanddoBid = p => puts('api/v2/designer_demand/doBid',p);

//下载需求方案
export const designerdownload = p => get('api/v2/designer_demand/'+p.id+'/doDownload');

//上传附件
export const designerdoUpload = p => puts('api/v2/designer_demand/doUpload',p);

//电子相册编辑页数据
export const editAlbum = p => get('api/v2/designer_demand/'+p.id+'/editAlbum');

//保存电子相册
export const storeAlbum = p => puts('api/v2/designer_demand/storeAlbum',p);

//保存电子相册
export const designerdemand = p => get('api/v2/designer_demand/'+p.id);

//获取上传的附件信息
export const beforeUpload = p => get('api/v2/designer_demand/'+p.id+'/beforeUpload');

//获取技术手册列表
export const manuallist = p => get('api/v2/manual',p);

//获取技术手册详细
export const manualdata = p => get('api/v2/manual/'+p.id);

//获取各页面图片
export const layoutlist = p => get('api/v2/layout/list',p);

//获取各视频素材列表
export const vadiolist = p => get('api/v2/video',p);

//获取素材视频链接
export const sucaivadio = p => get('api/v2/video/'+p.id);

//获取小概念pdf列表
export const test_reports = p => get('api/v2/test_report',p);

//获取小概念pdf详情
export const test_report = p => get('api/v2/test_report/'+p.id);

//常见设计问题
export const design_problems = p => get('api/v2/design_problem',p);

//参考图库列表
export const reference_gallerys = p => get('api/v2/reference_gallery',p);

//参考图库详情
export const reference_gallery = p => get('api/v2/reference_gallery/'+p.id);

//只是产权分类
export const intellectualPropertyTypes = p => get('api/v2/test_report/intellectualPropertyTypes');